package org.smartloli.kafka.eagle.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author zbc
 * @date 2022/12/14
 */
@Data
//@Configuration
//@ConfigurationProperties(prefix = "efak")
public class Efak {

    private final Topic topic;

    private final Metrics metrics;

    public Efak() {
        this.topic = new Topic();
        this.metrics = new Metrics();
    }

    @Data
    public static class Topic {
        private String token;
    }

    @Data
    public static class Metrics {
        private boolean charts;
        private int retain;
    }

    // multi zookeeper & kafka cluster list
    String zkClusterAlias = "cluster1";
    // kraft broker
    String kafkaClusterAlias = "cluster1";
    // EFAK webui port
    int webuiPort = 8048;
    // EFAK enable distributed
    boolean distributedEnable = false;
    String clusterModeStatus = "slave";
    String worknodeMasterHost = "192.168.31.199";
    int worknodePort = 8085;
    String worknodeAddressPath = "/Users/dengjie/workspace/kafka-eagle-plus/efak-common/src/main/resources/works";
    // kafka metrics, 15 days by default
    boolean metricsCharts = true;
    int metricsRetain = 15;

}
